setAlpha

open fun setAlpha(@FloatRange(from = 0.0, to = 1.0) alpha: Float)(source)

Sets the translucency of the windows that are animating.

Note: This should only be used for testing, as the system fills in the alpha for the application or the alpha that was passed into setInsetsAndAlpha is being used.

Parameters

alpha

Alpha of windows that cause insets of type Type.

See also